<include file="public:header" />
<link rel="stylesheet" type="text/css" href="__STATIC__/js/calendar/calendar-blue.css"/>
<script type="text/javascript" src="__STATIC__/js/calendar/calendar.js"></script>
<div class="subnav">
  <h1 class="title_2 line_x">采集器修改</h1>
</div>
<div class="pad_lr_10" >
  <form id="info_form" action="{:U('uzdtk/edit')}" name="searchform" method="post" >
    <table width="100%" cellspacing="0" class="table_form">
      <tbody>
        <tr>
          <th width="150">名称：</th>
          <td>
            <input name="name" type="text" id="J_name" class="input-text" size="50" value="{$info.name}"/>
            <span class="gray ml10">采集器名称</span>
          </td>
        </tr>
        <tr>
          <th><font color="red">[新]</font>&nbsp; 采集模式：</th>
          <td>第三方群+第三方内部券接口</td>
        </tr>
        <tr class="api_mod">
          <th width="150">分类ID :</th>
          <td>
            <input type="text" name="cat" class="input-text" size="50" value="{$info.cat}" />
            <span class="red ml10">默认，不可修改（不可乱修改需按照ID分类采集否则会乱分类）</span>
          </td>
        </tr>
        <tr>
          <th width="150">姓别 :</th>
          <td>
            <select name="sex">
              <option value="0" <if condition="$info.sex eq '0'"> selected</if>>无</option>
              <option value="1" <if condition="$info.sex eq '1'"> selected</if>>男</option>
              <option value="2" <if condition="$info.sex eq '2'"> selected</if>>女</option>
            </select>
          </td>
        </tr>
        <tr>
          <th>采集页数：</th>
          <td>
             <select name="page">
              <?php for($a=1;$a<=100;$a++){?>
              <option value="<?=$a?>" <if condition="$info.page eq $a"> selected</if>>采集<?=$a?>页</option>
              <?php }?>
            </select>
          </td>
        </tr>
        <tr>
          <th>入库分类：</th>
          <td>
            <select class="J_cate_select mr10" data-pid="0" data-uri="{:U('items_cate/ajax_getchilds', array('type'=>0))}" data-selected="{$selected_ids}"></select>
            <input type="hidden" name="cate_id" id="J_cate_id" value="{$info.cate_id}" />
          </td>
        </tr>
        <tr>
          <th>设置开始时间 :</th>
          <td><input type="text" name="coupon_start_time" id="coupon_start_time"  class="date" value="{$info.coupon_start_time|date='Y-m-d H:i',###}"/></td>
        </tr>
        <tr>
          <th>设置结束时间 :</th>
          <td><input type="text" name="coupon_end_time" id="coupon_end_time" class="date" value="{$info.coupon_end_time|date='Y-m-d H:i',###}"/></td>
        </tr>
        <tr>
          <th></th>
          <td>
            <input type="hidden" name="id"  value="{$info.id}" />
            <input type="submit" name="search" class="smt  mr10" value="{:L('submit')}" />
          </td>
        </tr>
      </tbody>
    </table>
  </form>
</div>
<include file="public:footer" /> 
<script>
$('.J_cate_select').cate_select('请选择');
$(function(){
	$.formValidator.initConfig({formid:"info_form",autotip:true});
	$("#J_name").formValidator({onshow:'请填写采集器名称',onfocus:'请填写采集器名称'}).inputValidator({min:1,onerror:'请填写采集器名称'});
});
</script> 
<script language="javascript" type="text/javascript">
Calendar.setup({
	inputField     :    "coupon_start_time",
	ifFormat       :    "%Y-%m-%d %H:%M:%S",
	showsTime      :    'true',
	timeFormat     :    "24"
});
</script> 
<script language="javascript" type="text/javascript">
Calendar.setup({
	inputField     :    "coupon_end_time",
	ifFormat       :    "%Y-%m-%d %H:%M:%S",
	showsTime      :    'true',
	timeFormat     :    "24"
});
</script>
</body>
</html>